Skip to content

Fix hardcoded path separator for Windows compatibility#5

Merged
abedurftig merged 1 commit intomainfrom
bug/smartfiles-bvs-fix-path-separator
Jan 16, 2026
Merged

Fix hardcoded path separator for Windows compatibility#5
abedurftig merged 1 commit intomainfrom
bug/smartfiles-bvs-fix-path-separator

Conversation

@abedurftig
Copy link
Owner

Summary

  • Changed from absolutePath.substring(absolutePath.lastIndexOf("/") + 1) to Path.of(absolutePath).getFileName().toString()
  • This works correctly on all platforms (Unix uses /, Windows uses \)

Issue

Fixes smartfiles-bvs

Test plan

  • All 51 tests pass

🤖 Generated with Claude Code

Changed from hardcoded '/' substring extraction to Path.getFileName()
which works correctly on all platforms.

Fixes: smartfiles-bvs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@abedurftig abedurftig merged commit 9de6420 into main Jan 16, 2026
1 check passed
@abedurftig abedurftig deleted the bug/smartfiles-bvs-fix-path-separator branch January 16, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants